<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    x:Class="OpenLS.UI.Themes.RibbonWindowResources"                
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ui="clr-namespace:OpenLS.UI"
    xmlns:os="clr-namespace:OpenLS.UI"
    >
  <ResourceDictionary.MergedDictionaries>
        <os:VistaOfficeWindowResources/>
        <os:XPOfficeWindowResources />
  </ResourceDictionary.MergedDictionaries>


  <Style x:Key="{x:Type ui:RibbonWindow}" TargetType="{x:Type ui:RibbonWindow}">
    <Style.Resources>
      <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
          <ResourceDictionary Source="QuickAccessToolbarResources.xaml"/>
        </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Style.Resources>

    <Setter Property="Template" Value="{StaticResource vistaOfficeWindowTemplate}"/>
    <Setter Property="Background" Value="White"/>
    <Style.Triggers>
      <Trigger Property="IsGlass" Value="False">
        <Setter Property="Template" Value="{StaticResource XPOfficeWindowTemplate}"/>
        <Setter Property="WindowStyle" Value="None"/>
        <Setter Property="Background" Value="Transparent"/>
      </Trigger>
      <Trigger Property="IsGlass" Value="True">
        <Setter Property="Template" Value="{StaticResource vistaOfficeWindowTemplate}"/>
        </Trigger>
    </Style.Triggers>
  </Style>

</ResourceDictionary>